package com.boyunv.memento.example01;

import lombok.Data;
import lombok.ToString;

/*
 *@description
 *  备忘录角色
 *      访问权限:默认:在同包下不可见,只有访问者才可以访问
 *@author boyunv
 *@create 2023/9/4 7:42
 *@version 1.0
 */
@Data
@ToString
 class Memento {
    
    private String state="从备份对象恢复原始对象 原始对象";
    
    private String id;
    private String name;
    private String phone;
     
     public Memento() {
     }
    
    public Memento(String id, String name, String phone) {
        this.id = id;
        this.name = name;
        this.phone = phone;
    }
}
